package com.tcm.pay.service;


import com.base.core.pager.PageBean;
import com.tcm.pay.domain.dto.PaymentDTO;

/**
 *
 * @Description:
 * @author lichong
 * 2015年4月5日下午6:34:47
 *
 */
public interface PaymentService {

	PaymentDTO findByOrderId(Long uid, Long orderId, String tradeType) throws Exception;

	PageBean<PaymentDTO> listPagePayment(Long uid, String tradeType, Long page, Long pagesize) throws Exception;

	int updateStatusToPaid(Long userId, Long orderId, String tradeType) throws Exception;

	PaymentDTO findByPaySn(String paySn, String tradeType) throws Exception;

	void createNewPaySn(Long orderId, Long buyerId, String tradeType) throws Exception;

	void create(PaymentDTO paymentDTO) throws Exception;

	void delete(Long userId, Long orderId,String tradeType) throws Exception;
}
